package com.hwang.demo1.practice;

/**
 * @ Author    :hwang
 * @ param     :
 * @ return    :
 * @ Description:
 * @ Date       :2019/9/26
*/

public class helloworld {

    public static void main(String[] args) {
        // 常数
        System.out.println("hello world!");
        System.out.println("10");
        System.out.println(10);
        // 变量
        int x = 10;
        System.out.println(x);
        x = 100;
        System.out.println(x);
        // 加减乘除
        int a = 3;
        int b = 4;
        System.out.println(a + b);
        System.out.println(a - b);
        System.out.println(a / b);
        System.out.println(a * b);
        // 浮点运算
        float c = 3;
        float d = 4;
        System.out.println(c / d);
        System.out.println(d / c);
        // 求余运算
        System.out.println(75 % b);
        
    }
}
